-- GENERATED SPELL FOR [Boulderfist Brute] --


function spell0_2566(pUnit, Event) --@Fist of Stone,Self--
pUnit:FullCastSpellOnTarget(4955,pUnit)
pUnit:RegisterEvent('Sorts_2566', 12000, 1)
end

function spell1_2566(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2566', 2319, 1)
end

function Sorts_2566(pUnit, Event)
local choix_sorts_2566 = math.random(0, 1)
if choix_sorts_2566 == 0 then
pUnit:RegisterEvent('spell0_2566', 1, 1)
end
if choix_sorts_2566 == 1 then
pUnit:RegisterEvent('spell1_2566', 1, 1)
end
end

function mob2566_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2566', math.random(1500, 3000), 1)
end

function mob2566_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2566_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2566_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2566, 1, 'mob2566_Action')
RegisterUnitEvent(2566, 2, 'mob2566_Leave')
RegisterUnitEvent(2566, 3, 'mob2566_Kill')
RegisterUnitEvent(2566, 4, 'mob2566_Die')
